<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> 
<!DOCTYPE html>
<html>
<head>
    <title>专家抽取维护记录详情</title>
    
    <!--[if lt IE 9]>
        <script src="${ctx}/lib/js/html5shiv.min.js"></script>
        <script src="${ctx}/lib/js/respond.min.js"></script>
    <![endif]-->
    <%@ include file="/WEB-INF/component/commonCSS.jsp"%>
<style type="text/css">
.text-left {color:#848484;}
.box-body {margin-top:-5px;}
</style>
    
</head>
<body class="skin-blue sidebar-mini fixed skin-blue-light-frame">
    <section class="content-header">
        <h1>专家抽取维护记录详情</h1>
        <ol class="breadcrumb">
            <li><a href="${ctx}/home.jsp"><i class="fa fa-home"></i>首页</a></li>
            <li class="active"><a href="#">专家抽取管理</a></li>
            <li class="active"><a href="#">抽取规则设置</a></li>
        </ol>
    </section>
    <section class="content">
    <table class="serviceLog">
      <tr>
         <th>
         &nbsp;&nbsp;&nbsp;修改详情
         </th>
         
      </tr>
      <tr>
         <td>
          <div class="form-group form-group-xs" style="margin-top:5px" >	
              <label class="col-sm-1 text-right"><span style="font-weight: 600;color:#00a65a">修改时间</span></label>           
	          <label class="col-sm-2 text-right">本次修改时间：</label>
	                        <div class="col-sm-2 text-left">
	                            ${fn:substring(oldLog.updDateTime, 0, 19)}
	                        </div>
	          <label class="col-sm-2 text-right">上次修改时间：</label>
                        <div class="col-sm-2 text-left">
                            ${newLog==null?"":(fn:substring(newLog.updDateTime, 0, 19))}
                        </div>
	       
	      </div>
         </td>
      </tr>
      <tr >
         <td>
           <div class="form-group form-group-xs" style="margin-top:5px">
            <label class="col-sm-1 text-right"><span style="font-weight: 600;color:#00a65a">修改人</span></label>
	       <label class="col-sm-2 text-right">本次修改人：</label>
	                        <div class="col-sm-2 text-left">
	                            ${oldLog.updUser}
	                        </div>
	         <label class="col-sm-2 text-right">上次修改人：</label>
                        <div class="col-sm-2 text-left">
                            ${newLog==null?"":newLog.updUser}
                        </div>
	       </div>

         </td>
      </tr>
    </table>
        <div class=" box box-primary" style="width:49%;float:left;">
          <div class="box-header with-border">
           <h3 class="box-title">修改后</h3>
            </div>
            <form id="form" class="form-horizontal">
                <div class="box-body">
                	 
                    
                    <div class="form-group form-group-xs" id="oldE">
                        <label for="hospName" class="col-sm-3 text-right">专家类别：</label>
                        <c:if test="${oldExpertType != null}">
                        
                         <c:forEach items="${oldExpertType}" var="old">
                                    <div class="col-sm-4 text-left"   >
                        ${old.expertTypeName} : ${old.count }
                        </div>
                          </c:forEach>
                          </c:if>
                    </div>
                    <div class="line"></div> 
                    
                    <div class="form-group form-group-xs" id="oldH">
                        <label for="hospName" class="col-sm-3 text-right">医疗机构分类：</label>
                        <c:if test="${oldHospType != null}">
                        
                         <c:forEach items="${oldHospType}" var="old">
                                    <div class="col-sm-4 text-left"   >
                        ${old.dic_name} : ${old.expert_rate }%
                        </div>
                          </c:forEach>
                          </c:if>
                    </div> 
                    <div class="line"></div> 
                    
                     <div class="form-group form-group-xs">
                        <label for="hospName" class="col-sm-3 text-right">是否大输液：</label>
                        <div class="col-sm-4 text-left" ${oldLog.infusion == null?"style='color:red;'":oldLog.infusion == newLog.infusion?"":"style='color:red;'" }  >
                        ${oldLog.infusion==0?"否":"是"}
                        </div>
                    </div>
                     <div class="line"></div> 
                     <div class="form-group form-group-xs">
                        <label for="hospName" class="col-sm-3 text-right">每家医疗机构最大抽取数：</label>
                        <div class="col-sm-4 text-left" ${oldLog.maxExtractNum == null?"style='color:red;'":oldLog.maxExtractNum == newLog.maxExtractNum?"":"style='color:red;'" }  >
                        ${oldLog.maxExtractNum}
                        </div>
                    </div>
                   
                    <div class="line"></div> 
                    <div class="form-group form-group-xs">
                        <label for="hospClassify" class="col-sm-3 text-right">抽取状态：</label>
                        <div class="col-sm-4 text-left" id="oldExecStatus" ${oldLog.execStatus == null?"style='color:red;'":oldLog.execStatus == newLog.execStatus?"":"style='color:red;'"}  >
                        ${oldLog.execStatus==0?"未抽取":"已抽取"}
                        </div>
                    </div>
                    <div class="line"></div> 
                    <div class="form-group form-group-xs">
                        <label for="status" class="col-sm-3 text-right">状态：</label>
                        <div class="col-sm-4 text-left" id = "oldStatus" ${oldLog.status == null?"style='color:red;'":oldLog.status == newLog.status?"":"style='color:red;'"}  >
                        ${oldLog.status==0?"停用":"启用"}
                        </div>
                    </div>
                    <div class="line"></div> 
                </div>

            </form>
        </div>
          <div class=" box box-primary" style="width:49%;float:right;">
          <div class="box-header with-border">
           <h3 class="box-title">修改前</h3>
            </div>
            <form id="form" class="form-horizontal">
                <div class="box-body">
                	 
                    
                    <div class="form-group form-group-xs" id="newE">
                        <label for="hospName" class="col-sm-3 text-right">专家类别：</label>
                        <c:if test="${newLog != null && newExpertType != null}">
                         <c:forEach items="${newExpertType}" var="new1">
                                    <div class="col-sm-4 text-left"   >
                        ${new1.expertTypeName} : ${new1.count }
                        </div>
                          </c:forEach> 
                          </c:if>
                    </div>
                    <div class="line"></div> 
                    <div class="form-group form-group-xs" id="newH">
                        <label for="hospName" class="col-sm-3 text-right">医疗机构分类：</label>
                        <c:if test="${newLog != null && newHospType != null}">
                         <c:forEach items="${newHospType}" var="new1">
                                    <div class="col-sm-4 text-left"   >
                        ${new1.dic_name} : ${new1.expert_rate }%
                        </div>
                          </c:forEach>
                          </c:if>
                    </div> 
                    <div class="line"></div> 
                    <div class="form-group form-group-xs">
                        <label for="hospName" class="col-sm-3 text-right">是否大输液：</label>
                        <div class="col-sm-4 text-left">
                        ${newLog==null?"":newLog.infusion==0?"否":"是"} 
                        </div>
                    </div>
                    
                    <div class="line"></div> 
                     <div class="form-group form-group-xs">
                        <label for="hospName" class="col-sm-3 text-right">每家医疗机构最大抽取数：</label>
                        <div class="col-sm-4 text-left">
                        ${newLog==null?"":newLog.maxExtractNum} 
                        </div>
                    </div>
                    
                    <div class="line"></div> 
                    <div class="form-group form-group-xs">
                        <label for="hospClassify" class="col-sm-3 text-right">抽取状态：</label>
                        <div class="col-sm-4 text-left" id="newExecStatus">
                        ${newLog==null?"":newLog.execStatus==0?"未抽取":"已抽取"}
                        </div>
                    </div>
                    <div class="line"></div> 
                    <div class="form-group form-group-xs">
                        <label for="status" class="col-sm-3 text-right">状态：</label>
                        <div class="col-sm-4 text-left" id="newStatus">
                        ${newLog==null?"":newLog.status==0?"停用":"启用"}
                        </div>
                    </div>
                    <div class="line"></div> 
                </div>

            </form>
        </div>      
 <div style="text-align:center;">
 <a href="toExtractRuleLogList.html?ruleId=${oldLog.ruleId}&projId=${oldLog.projId}" class="btn btn-danger btn-sm">返&nbsp;回</a>
</div>      
        
    </section>
    
      <%@ include file="/WEB-INF/component/commonJS.jsp"%>
    
    <script type="text/javascript">
    	$(function(){
    		var oldE = $("#oldE").height();
    		var newE = $("#newE").height();
    		if(Number(oldE)>Number(newE)){
    			$("#newE").height(oldE);
    		}else{
    			$("#oldE").height(newE);
    		}
    		
    		var oldH = $("#oldH").height();
    		var newH = $("#newH").height();
    		if(Number(oldH)>Number(newH)){
    			$("#newH").height(oldH);
    		}else{
    			$("#oldH").height(newH);
    		}
    	});
    </script>
    
</body>
</html>
